Skip to content

Add ability to copy archives into containers#932

Merged
cristianrgreco merged 1 commit intotestcontainers:mainfrom
zacaj:main
Mar 17, 2025
Merged

Add ability to copy archives into containers#932
cristianrgreco merged 1 commit intotestcontainers:mainfrom
zacaj:main

Conversation

@zacaj
Copy link
Copy Markdown
Contributor

@zacaj zacaj commented Mar 14, 2025

Adds copyArchiveToContainer and withCopyArchivesToContainer to mirror the existing copyArchiveFromContainer, allowing files to be copied from one container to another.

Builds on #923, since docker commits don't copy mounts, to allow complete duplication of a container

Would be nice eventually to have some kind of all-in-one duplicate() function on StoppedTestContainer..

Note: this is my first time making a github PR so hopefully I've done this right... Ran the linter and formatter, but many tests are failing for me even in the provided dev container, but they're also failing when I checkout main so I don't think it's related to my changes

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 14, 2025

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 5ad5d12
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/67d4b448b2e16a0008d2c5d4
😎 Deploy Preview https://deploy-preview-932--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@cristianrgreco cristianrgreco changed the title add ability to copy archives into containers Add ability to copy archives into containers Mar 17, 2025
@cristianrgreco cristianrgreco merged commit 0890956 into testcontainers:main Mar 17, 2025
441 of 637 checks passed
vaernion pushed a commit to Arbeidstilsynet/brevgen2 that referenced this pull request Dec 3, 2025
….21.0

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [testcontainers](https://github.com/testcontainers/testcontainers-node) | devDependencies | minor | [`10.20.0` -> `10.21.0`](https://renovatebot.com/diffs/npm/testcontainers/10.20.0/10.21.0) |

---

### Release Notes

<details>
<summary>testcontainers/testcontainers-node (testcontainers)</summary>

### [`v10.21.0`](https://github.com/testcontainers/testcontainers-node/releases/tag/v10.21.0)

[Compare Source](testcontainers/testcontainers-node@v10.20.0...v10.21.0)

#### Changes

#### 🚀 Features

-   Add ability to set command flags to Gcloud emulators [@&#8203;digital88](https://github.com/digital88) ([#&#8203;926](testcontainers/testcontainers-node#926))
-   Update resource reaper version [@&#8203;loikg](https://github.com/loikg) ([#&#8203;933](testcontainers/testcontainers-node#933))
-   Add cosmos db emulator module [@&#8203;mrtnsch](https://github.com/mrtnsch) ([#&#8203;934](testcontainers/testcontainers-node#934))
-   Add ability to copy archives into containers [@&#8203;zacaj](https://github.com/zacaj) ([#&#8203;932](testcontainers/testcontainers-node#932))

#### 🐛 Bug Fixes

-   Do not replace user-provided Localstack `LAMBDA_DOCKER_FLAGS` [@&#8203;florian-nguyen](https://github.com/florian-nguyen) ([#&#8203;935](testcontainers/testcontainers-node#935))

#### 🧹 Maintenance

-   Upgrade linting libraries [@&#8203;prenaissance](https://github.com/prenaissance) ([#&#8203;931](testcontainers/testcontainers-node#931))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or PR is renamed to start with "rebase!".

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Related work items: #30372
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor Backward compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants